// spreadjs
import '@grapecity/spread-sheets/styles/gc.spread.sheets.excel2016colorful.css'
import '@grapecity/spread-sheets-resources-zh'
import GC from '@grapecity/spread-sheets'
import '@grapecity/spread-sheets-charts'
import '@grapecity/spread-sheets-shapes'
import { GcSpreadSheets, GcWorksheet, GcColumn } from '@grapecity/spread-sheets-vue'
import type { App } from 'vue'

GC.Spread.Common.CultureManager.culture('zh-cn')

export const setSpread = (app: App) => {
  app.component('GcSpreadSheets', GcSpreadSheets).component('gc-worksheet', GcWorksheet).component('gc-column', GcColumn)
}
